home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / merge.hlp < prev    next >
Text File  |  1985-08-19  |  3KB  |  55 lines

  1. **********************************************************************
  2. *                             MERGE                                  *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     MERGE - Merges two sorted files together in various ways.
  8. USAGE:
  9.     MERGE [<fid] fid [-U] [-R] [-Cn] [-Ln] [-D] [-I] [-F] [-H] [>fid]
  10. FUNCTION:
  11.     This program merges two sorted files and produces various
  12.     combinations in the output stream.
  13.     The default is to do a straight forward merge of the standard 
  14.     input with the named file on the command line to the standard 
  15.     output.
  16.     
  17.     Options are:
  18.     -D  Output only lines found in both files
  19.     -I  Output only lines in the standard input which do not
  20.         match lines in the named file.
  21.     -F  Output only lines in the named file which do not
  22.         match lines in the standard input.
  23.     -R  Reverse sort order.
  24.     -U  Convert to upper case before compare.
  25.     -Cn Column position to start compare. (Default 1.)
  26.     -Ln Maximum length of compare. (Default whole line.)
  27.     -H  Display the available options.
  28. EXAMPLE:
  29.     SORT <LTLFILE |MERGE BIGFILE >NEWFILE
  30. COMMENTS:
  31.     Options -I and -F may be used together to get all lines
  32.     not in common.  This REQUIRES that no repeated lines exist in
  33.     either file.  UNIQUE may be used to eliminate repeated lines.
  34.     
  35.     Trying to merge two files which were not sorted the same way or 
  36.     not using the same sort criteria (i.e. -C, -L, -R, -U) will not 
  37.     give you the desired result.
  38.     
  39.  
  40.        Command Line
  41.  
  42. ___________________________________  
  43.                                   |  
  44.                                   |  
  45.                                   |  NAME OF FILE WITH SORTED TEXT
  46.                                   |          & OPTIONS
  47.                                   |                            
  48.  Standard Input     ______________V______________    Standard Output
  49.                     |                           |
  50.  SORTED TEXT        |                           |     MERGED TEXT
  51. ------------------->|          MERGE            |----------------------->
  52.                     |                           |
  53.                     |                           |
  54.                     |___________________________|
  55.